package com.zx.mes.hyl.common.constant;

/**
 * @author hyl
 * @date 2017-12-16
 */
public class CommonConstants {
    public static final String RESOURCE_TYPE_MENU="menu";
    public static final String RESOURCE_TYPE_BTN="button";
    /**
     * token异常
     */
    public static final Integer EX_TOKEN_ERROR_CODE=401001;
    /**
     * 客户端token异常
     */
    public static final Integer EX_USER_TOKEN_INVALID_CODE=401002;
    /**
     * 客户端token异常
     */
    public static final Integer EX_CLIENT_TOKEN_INVALID_CODE=401003;
    /**
     * 客户端禁止访问
     */
    public static final Integer EX_CLIENT_FORBIDDEN_CODE=401004;
    /**
     * 其它异常
     */
    public static final Integer EX_OTHER_ERROR_CODE=500001;

    public static final String CONTEXT_KEY_USER_ID="currentUserId";

    public static final String CONTEXT_KEY_USERNAME="currentUserName";

    public static final String CONTEXT_KEY_USER_NAME="currentUser";

    public static final String CONTEXT_KEY_USER_TOKEN="currentUserToken";

    public static final String JWT_KEY_USER_ID="userId";

    public static final String JWT_KEY_NAME="name";

}
